import request from '@/utils/request';
import { type input, type DelList, type input1, type input2 } from './type'


export function GetUserInfo() {
    return request({
        url: '/ProcurementData/GetUserInfo',
        method: 'get',
    })
}

export function GetSalesOrderShow(data: input) {
    return request({
        url: '/SalesData/GetSalesOrderShow',
        method: 'post',
        data
    })
}

export function GetSupplierList() {
    return request({
        url: '/SalesData/GetSupplierList',
        method: 'get',
    })
}
export function DeleteSalesOrder(data: any) {
    return request({
        url: '/SalesData/DeleteSalesOrder?salesOrdersid=' + data,
        method: 'get',

    })
}

export function RangeDeleteSalesOrder(data: DelList) {
    return request({
        url: '/SalesData/RangeDeleteSalesOrder',
        method: 'post',
        data
    })
}

export function GetSalesOutboundShow(data: input1) {
    return request({
        url: '/SalesData/GetSalesOutboundShow',
        method: 'post',
        data
    })
}


export function GetWarehouseList() {
    return request({
        url: '/SalesData/GetWarehouseList',
        method: 'get',
    })
}

export function GetAccountList() {
    return request({
        url: '/SalesData/GetAccountList',
        method: 'get',
    })
}

export function DeleteSalesOutbound(data: any) {
    return request({
        url: '/SalesData/DeleteSalesOutbound?salesOrdersid=' + data,
        method: 'get',

    })
}

export function RangeDeleteSalesOutbound(data: DelList) {
    return request({
        url: '/SalesData/RangeDeleteSalesOutbound',
        method: 'post',
        data
    })
}

export function GetSalesReturnShow(data: input2) {
    return request({
        url: '/SalesData/GetSalesReturnShow',
        method: 'post',
        data
    })
}

export function DeleteSalesReturn(data: any) {
    return request({
        url: '/SalesData/DeleteSalesReturn?salesOrdersid=' + data,
        method: 'get',

    })
}

export function RangeDeleteSalesReturn(data: DelList) {
    return request({
        url: '/SalesData/RangeDeleteSalesReturn',
        method: 'post',
        data
    })
}








